package com.iknight.theory.constant;

/**
 * @author JeryZym
 */
@Deprecated
public enum EquipEnum {
    TRAN("变压器", "01"), CONTAINER("计量箱", "02");
    private String type;
    private String value;

    EquipEnum(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public static String getType(String value) {
        for (EquipEnum equipEnum : EquipEnum.values()) {
            if (equipEnum.getValue() == value) {
                return equipEnum.type;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
